//
//  CustomView.m
//  13-AutoLayout强化
//
//  Created by dllo on 16/8/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
// 内容的大小
// UIView 默认大小 －1，－1
- (CGSize)intrinsicContentSize {
    CGSize size = [super intrinsicContentSize];
    NSLog(@"%@", NSStringFromCGSize(size));
    return CGSizeMake(100, 100);
}
@end
